//
//  TimelineCacheManager.h
//  weibo3
//
//  Created by 吴天 on 11-5-25.
//  Copyright 2011年 nfsysu. All rights reserved.
//

#import <Foundation/Foundation.h>

enum {
	FollowingTimelineCacheType = 1,
	MentionsTimelineCacheType = 2,
	SelfTimelineCacheType = 3,
	CommentTimelineCacheType = 4,
};
typedef NSUInteger TimelineCacheTypes;


@interface TimelineCacheManager : NSObject {
    
    NSMutableArray *followingStatusCache, *mentionsStatusCache, 
    *commentStatusCache, *selfStatusCache;
    
	BOOL firstFollowingCall, firstMentionsCall, firstCommentCall, 
    firstSelfCall;
    
	NSString *lastFollowingStatusID, *lastMentionStatusID, *lastCommentStatusID,
    *lastSelfStatusID;
    
    NSString *endFollowingStatusID, *endMentionStatusID, *endCommentStatusID,
    *endSelfStatusID;
    
    
}

- (void) resetAllCaches;
- (NSMutableArray *) setStatusesForTimelineCache:(NSUInteger)timelineCacheType
                                withNotification:(NSNotification *)note;

- (NSMutableArray *) setStatusesForTimelineCache:(NSUInteger)timelineCacheType
                                withArray:(NSArray *)array;

- (NSMutableArray *) appendStatusesForTimelineCache:(NSUInteger)timelineCacheType
                                       withArray:(NSArray *)array;

@property(copy) NSMutableArray *followingStatusCache, *mentionsStatusCache, 
*commentStatusCache, *selfStatusCache;

@property() BOOL firstFollowingCall, firstMentionsCall, firstCommentCall, 
firstSelfCall;

@property(copy) NSString *lastFollowingStatusID, *lastMentionStatusID, *lastCommentStatusID,
*lastSelfStatusID;

@property(copy) NSString *endFollowingStatusID, *endMentionStatusID, *endCommentStatusID,
*endSelfStatusID;


@end
